import about from './modules/About'
import home from './modules/Home'
import { createStore } from 'vuex'
const store = createStore({
  modules: {
    about,
    home,
  },
  state() {
    return {
      rootCount: 0,
    }
  },
  mutations: {
    increment(state) {
      state.rootCount += 100
    },
  },
  actions: {
    incrementAction(context) {
      context.commit('increment')
    },
  },
  getters: {
    rootCountGet(state) {
      return `root里面的count ： ${state.rootCount}`
    },
  },
})
export default store
